import java.util.InputMismatchException;
import java.util.Scanner;

public class Test3 {
    public static int getData() {
        try {
            Scanner scanner = new Scanner(System.in);
            int a = scanner.nextInt();
            System.out.println(a);
        } catch(InputMismatchException e) {
            e.printStackTrace();
            System.out.println("输入不匹配...");
            return -1;
        } finally {
            System.out.println("finally继续执行...");
            return 10;
        }
    }

    public static void main(String[] args) {
        System.out.println(getData());
    }
}
